import cv2 as cv


def main():
    cap = cv.VideoCapture("C:/Users/18873/Desktop/videos/v_Archery_g20_c06.avi")
    if cap.isOpened():
        rate = cap.get(5)
        frame_number = cap.get(7)
        duration = frame_number / rate
        fps = cap.get(cv.CAP_PROP_FPS)

    return rate, frame_number, duration, fps


if __name__ == '__main__':
    a, b, c, d = main()
    pass